package com.xin.mmall.execption;

import com.xin.mmall.enums.ResultEnum;
/*
* unchecked 不用去处理的异常，交给jvm处理，继承RuntimeException
* 什么情况下是checked，需要自己处理，继承Exception
* */
public class MMallException extends RuntimeException{
    public MMallException(String error) {
        super(error);
    }

    public MMallException(ResultEnum resultEnum) {
        super(resultEnum.getMessage());
    }
}
